package com.gump.essay.demo.design.jdgc;

/**
 * @auther zzc
 * @date 2020/12/9 11:51
 */
public class FruitFactory {

    public Fruit produce(String name) {
        if ("apple".equals(name)) {
            return new Apple();
        } else {
            return null;
        }
    }
}
